package com.example.admin.brainwave.ui.adapter;


import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.admin.brainwave.R;
import com.example.admin.brainwave.bean.HistoryBean;

import java.util.List;

public class HistoryAdapter extends BaseQuickAdapter<HistoryBean.ResultBean, BaseViewHolder> {

    public HistoryAdapter(int layoutResId, @Nullable List<HistoryBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HistoryBean.ResultBean item) {
        TextView tv_history_date = helper.getView(R.id.tv_history_date);
        TextView tv_history_data = helper.getView(R.id.tv_history_data);
        tv_history_date.setText(item.getTestTime());
        tv_history_data.setText(item.getScore());
    }
}
